public class Date {
   public int year;
   public int month;
   public int day;

   public void setDate(int year, int month, int day) {
       this.year = year;
       this.month = month;
       this.day = day;
   }
   public void printDate() {
       System.out.println(year+"年"+month+"月"+day+"日");
   }

    public static void main(String[] args) {
        Date date = new Date();
        date.setDate(2008, 8, 8);
        date.printDate();

        Date date2 = new Date();
        date2.setDate(2009, 9, 9);
        date2.printDate();

        Date date3 = new Date();
        date3.setDate(2010, 10, 10);
        date3.printDate();
    }
}

